package cn.test;

public class Student {
	private int age;
	private String name;
	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Student(int age, String name) {
		super();
		this.age = age;
		this.name = name;
	}

	public Student() {
		super();
	}

	public Student(int age) {
		super();
		this.age = age;
	}

	public static void main(String[] args) {
		// Student student = new Student(20);
		Student student = new Student(20);
		System.out.println("age = " + student.getAge() + ", name = " + student.getName());
	}
}
